package com.khalil.kkadmin.ai.rag.knowledgeset.repository;

import com.khalil.kkadmin.ai.rag.knowledgeset.entity.RagKnowledgeText;
import com.khalil.kkadmin.infrastructure.jpa.KkJpaRepository;

import java.util.List;

public interface RagKnowledgeTextRepository extends KkJpaRepository<RagKnowledgeText, Long> {
    List<RagKnowledgeText> findByKnowledgeSetId(Long knowledgeSetId);

    List<RagKnowledgeText> findByRagDocumentId(Long kbDocumentId);

    void deleteByRagDocumentId(Long kbDocumentId);
}
